package com.cloud.elm.service.impl;

import com.cloud.elm.mapper.BusinessMapper;
import com.cloud.elm.po.Business;
import com.cloud.elm.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService{
	
	@Autowired
	private BusinessMapper businessMapper;

	@Override
	public List<Business> listBusinessByOrderTypeId(Integer orderTypeId) {
		return businessMapper.listBusinessByOrderTypeId(orderTypeId);
	}
	
	@Override
	public Business getBusinessById(String businessId) {
		return businessMapper.getBusinessById(businessId);
	}

	@Override
	public void updateBusinessById(String userId, String userName, String userImg) {
		businessMapper.updateBusinessById(userId, userName, userImg);
	}


//	@Override
//	public String getPasswordByBusinessId(Integer businessId) {
//		return businessMapper.getPasswordByBusinessId(businessId);
//	}

//	@Override
//	public void updatePwd(Integer businessId, String newPassword) {
//		businessMapper.updatePwd(businessId, newPassword);
//	}
}
